import React from 'react'
import { SearchBar } from 'antd-mobile'
import { useHistory } from 'umi'
export default function Search() {
    const change = (value: any) => {
        console.log("搜索框", value)

    }
    const history = useHistory();
    const cancel = () => {
        history.goBack();
    }
    return (
        <div>
            <div style={{ padding: "20px" }}>
                <SearchBar
                    placeholder='请输入内容'
                    showCancelButton={() => true}
                    onChange={change}
                    onCancel={cancel} />
            </div>
        </div>
    )
}
